<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="mine" uri="RollDice" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Index Page</title>
</head>
<body>
	<form action="/DeepInServlet/firstServlet" method="post">
		<input type="submit" value="show" />
	</form>
	<%
		Object loopTimes = request.getAttribute("loopTimes");
		for (int i = Integer.parseInt(loopTimes.toString())-1; i > 0; i--) {
			out.write("<h" + i + ">hello world" + "</h" + i + "><br>");
		}
	%>
	<c:forEach var="str" items="${jstl }" varStatus="counter">
		${str },I am the number ${counter.count } character.<br>
	</c:forEach>
	You Have Got ${mine:rollIt() } Points.
	
	<c:if test="${loopTimes>6 }">
		You Just Win The Game.:)
	</c:if>
	
</body>
</html>